home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
429_01
/
chess12
/
cplayer.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-30
|
464b
|
23 lines
#if !defined(CPLAYER_HPP)
#define CPLAYER_HPP
#include "chess.hpp"
#include "player.hpp"
// player whose moves are chosen by the computer
class COMPUTERPLAYER : public PLAYER
{
private:
// number of moves to look ahead when chosing the next move
const int lookAhead;
public:
COMPUTERPLAYER(PIECECOLOR color, int lA) :
PLAYER(color), lookAhead(lA) { }
virtual GAMESTATUS play(BOARD &board) const;
};
#endif